import request from '@/utils/request'

export function getEmployeeSimple() {
  return request({
    url: '/sys/user/simple'
  })
}
export function getEmployees(page, size) {
  return request({
    url: '/sys/user',
    params: { page: page, size: size }
  })
}
export function addEmployees(data) {
  return request({
    method: 'POST',
    url: '/sys/user',
    data
  })
}
export function delEmployees(id) {
  return request({
    method: 'delete',
    url: `/sys/user/${id}`
  })
}
export function addEmployeesBatch(data) {
  return request({
    method: 'post',
    url: `/sys/user/batch`,
    data
  })
}
export function saveUserDetailById(data) {
  return request({
    method: 'put',
    url: `/sys/user/${data.id}`,
    data
  })
}
export function assignRoles(data) {
  return request({
    method: 'put',
    url: `/sys/user/assignRoles`,
    data
  })
}
